package cn.smxy.admin;

import cn.smxy.client.*;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan(basePackages = "cn.smxy.admin.mapper")
//@ComponentScan(basePackages = {"cn.smxy.admin.aop.log","cn.smxy.admin"})
@EnableCaching // 开启缓存支持
@EnableFeignClients(clients = {UserClient.class, CategoryClient.class, CollegeClient.class, PlantClient.class, CommentClient.class})
public class AdminApplication {
    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
    }
}
